package adapt;

public class Phone {

    public void charge(Charge v){
        int src = v.change220To5();
        if (src == 5){
            System.out.println("适配器输出电压为5V，充电成功");
        }else{
            System.out.println("适配器输出电压为"+src+"V，充电失败");
        }
    }

}
